package site.luojie.session.consistence;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * @author jie.luo
 * @description
 * @since 2020-06-30
 */
@SpringBootApplication
@EnableRedisHttpSession
public class SessionConsistenceApplication extends SpringBootServletInitializer {
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(SessionConsistenceApplication.class);
    }

    // http://47.105.168.185/demo/login/toLogin
    public static void main(String[] args) {
        SpringApplication.run(SessionConsistenceApplication.class, args);
    }
}
